Skip to main content

SocketListen

SocketListen[socket,fun] starts listening on the specified socket, asynchronously applying fun whenever data is received on the socket.

SocketListen[port,fun] starts listening for active connections on the specified port of 127.0.0.1.

SocketListen[address,fun] starts listening for active connections on the specified address address on the local machine.

SocketListen[spec,opts] starts listening for active connections defined by spec using the options opts.

SocketListen[spec] starts listening for active connections defined by spec, but does not set up handler functions, etc.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.